package edu.ccut.saturn.studio.logic.model.xml.loader;

import edu.ccut.saturn.studio.logic.model.saturn.SaturnBaseComponentNode;

public class ComponentFactory {
	
	public static SaturnBaseComponentNode getSaturnBaseComponentNode(String type){
		try {
			return (SaturnBaseComponentNode)Class.forName("edu.ccut.saturn.studio.logic.model.saturn."+type).newInstance();
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
	}
}
